#include "stdafx.h"
#include "FolderHandlerBase.h"

using namespace AID;

FolderHandlerBase::FolderHandlerBase(void)
:m_root (NULL)
{
	
}
FolderHandlerBase::~FolderHandlerBase(void)
{
	if (m_root != NULL)
	{
		delete m_root;
		m_root = NULL;
	}
}

VirtualFile* FolderHandlerBase::getOrCreateRoot(void)
{
	if (m_root == NULL)
	{
		m_root = VirtualFile::createRoot();
	}

	return m_root;
}
